
package com.zy.ems.model;

import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.zy.ems.common.base.BaseEntity;

public class QuestionEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 题目ID(db_column: id)
     */
    private Integer id;

    /**
     * 题目名称(db_column: name)
     */
    private String name;

    /**
     * 题目类型(1:填空题,2:单选题,3:多选题,4:简单题)(db_column: type)
     */
    private Integer type;

    /**
     * 题目讲解(db_column: analyze)
     */
    private String analyze;

    /**
     * 填空题答案(db_column: blank_answer)
     */
    private String blankAnswer;

    /**
     * 试题状态(1:启用，0:禁用)(db_column: status)
     */
    private Integer status;

    /**
     * 试题创建时间(db_column: create_time)
     */
    private Integer createTime;

    /**
     * 试题更新时间(db_column: update_time)
     */
    private Integer updateTime;

    /**
     * 创建人(db_column: create_id)
     */
    private Integer createId;

    /**
     * 更新操作人(db_column: update_id)
     */
    private Integer updateId;

    /**
     * 选择题答案(db_column: choice_answer)
     */
    private String choiceAnswer;

    /**
     * 简单题答案(db_column: short_answer)
     */
    private String shortAnswer;

    public QuestionEntity() {
    }

    public QuestionEntity(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer value) {
        this.id = value;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String value) {
        this.name = value;
    }

    public Integer getType() {
        return this.type;
    }

    public void setType(Integer value) {
        this.type = value;
    }

    public String getAnalyze() {
        return this.analyze;
    }

    public void setAnalyze(String value) {
        this.analyze = value;
    }

    public String getBlankAnswer() {
        return this.blankAnswer;
    }

    public void setBlankAnswer(String value) {
        this.blankAnswer = value;
    }

    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer value) {
        this.status = value;
    }

    public Integer getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Integer value) {
        this.createTime = value;
    }

    public Integer getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Integer value) {
        this.updateTime = value;
    }

    public Integer getCreateId() {
        return this.createId;
    }

    public void setCreateId(Integer value) {
        this.createId = value;
    }

    public Integer getUpdateId() {
        return this.updateId;
    }

    public void setUpdateId(Integer value) {
        this.updateId = value;
    }

    public String getChoiceAnswer() {
        return this.choiceAnswer;
    }

    public void setChoiceAnswer(String value) {
        this.choiceAnswer = value;
    }

    public String getShortAnswer() {
        return this.shortAnswer;
    }

    public void setShortAnswer(String value) {
        this.shortAnswer = value;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("Id", getId()).append("Name", getName())
                .append("Type", getType()).append("Analyze", getAnalyze())
                .append("BlankAnswer", getBlankAnswer())
                .append("Status", getStatus())
                .append("CreateTime", getCreateTime())
                .append("UpdateTime", getUpdateTime())
                .append("CreateId", getCreateId())
                .append("UpdateId", getUpdateId())
                .append("ChoiceAnswer", getChoiceAnswer())
                .append("ShortAnswer", getShortAnswer()).toString();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(getId()).toHashCode();
    }

}
